<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="layout" content="main-juego" />
</head>
<body>
<div style="width: 90%; padding: 15pt;">
		<div class="clearfix content-heading"></div>
			<div>
				<form method="post">
					<label>Buscar Zombie:</label>
					<g:textField name="nombre"
						class="input-medium span12" placeholder="Escriba el nombre" />

					<g:actionSubmit controller="PlantasVsZombiesController" action="almanaque" value="Buscar"/>
				</form>
				<br>
			</div>
			<div>
				<table class="table table-striped table-bordered table-hover table-condensed">
					<thead>
						<g:sortableColumn property="nombre" title="Nombre" />
						<g:sortableColumn property="ataque" title="Descripción" />
						<g:sortableColumn property="defensa" title="Defensa" />
						<g:sortableColumn property="descripcion" title="Ataque" />
					</thead>
					<tbody>
						<g:each in="${almanaqueZombies.result}" status="i" var="zombie">
							<tr>
							<td>${zombie.nombre}</td>
							<td>${zombie.descripcion}</td>
							<td>${zombie.ataque}</td>
							<td>${zombie.defensa}</td>
							</tr>
						</g:each>
					</tbody>
				</table>
			</div>
</div>
</body>
</html>